#pragma once //防止头文件被重复包含
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include <fcntl.h>
#include <stdio.h>

typedef struct FILE
{

    int fd;//文件描述符
    char buf[1024];//缓冲区
    int size;
}myFILE;

myFILE *mfopen(const char *path, const char *mode);
size_t mfread(void *ptr,size_t size, size_t nmemb,myFILE * stream);
size_t mfwrite(const void* ptr,size_t size, size_t nmemb,myFILE * stream);
int mfflush(myFILE * stream);



